from mycelery.main import app
import time
@app.task
def send_email(name):
    print(f'向{name}发送邮件...')
    time.sleep(4)
    print(f'向{name}发送邮件完成...')
    return '邮件发送完成'